package Object;

/**
 * @author jklu
 * 程序中用到的变量
 */
public class Constant {
    //Baidu访问每一页数据的API
//    public final static String API_BAIDU = "https://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&ct=201326592&word={word}&pn={begin}&rn={count}&ic={color}";
    public final static String API_BAIDU = "https://image.baidu.com/search/acjson?tn=resultjson_com&ipn=rj&ct=201326592&word={word}&pn={begin}&rn={count}&ic={color}&width={width}&height={height}";
    public final static String API_BAIDU2 = "https://image.baidu.com/search/flip?tn=baiduimage&word={word}&pn={start}";

    //Google访问每一页数据的API
    public final static String API_GOOGLE = "https://www.google.com/search?tbm=isch&q={word}&ijn={page}&start={start}&tbs={color}";
    //Bing访问每一页数据的API
    public final static String API_BING = "https://cn.bing.com/images/async?q={word}&first={begin}&count={count}&qft={color}";

    //Baidu的图片保存路径
    public final static String SAVE_PATH_BAIDU = "D:\\PicSpider\\baiduAcjson";
    public final static String SAVE_PATH_BAIDU2 = "D:\\PicSpider\\baiduFlip";

    //Google的图片保存路径
    public final static String SAVE_PATH_GOOGLE = "D:\\PicSpider\\google";
    //Bing的图片保存路径
    public final static String SAVE_PATH_BING = "D:\\PicSpider\\bing";
}
